//
//  Common.swift
//  微博
//
//  Created by 刘保满 on 16/5/20.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit


let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height


//用户登录授权配置信息
let client_id = "2509952979"

let client_secret = "72164a00fe0dbcee69c3f53eba69f60e"

let redirect_uri = "http://www.itheima.com"

//定义通用的错误信息
let AppErroTip = "网络君正在睡觉,请稍后再试"


//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

let EmoticonBtnDidClickNotification = "EmoticonBtnDidClickNotification"

//随机色
func randomColor() -> UIColor {
    let red = CGFloat(random() % 256 ) / 255.0
    let blue = CGFloat(random() % 256 ) / 255.0
    let green = CGFloat(random() % 256 ) / 255.0
    return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
}



//全局的日期格式化对象
let sharedDF = NSDateFormatter()